import { defineStore } from 'pinia';

export const otherStore = defineStore({
  id: 'other',
  state: () => ({
    data: null,
    liangdian: null,
    school: null,
    keyan: null,
    ShiXi: null,
    cer: null,
    ry: null
  }),
  actions: {
    // 存储个人亮点
    setHeightProts(data: any) {
      this.liangdian = data;
    },
    //存储技能证书
    setSkillCertificate(data: any) {
      this.cer = data;
    },
    // 存储在校经历
    setSchoolHistory(data: any) {
      this.school = data;
    },
    //实习经历
    setShiXixHistory(data: any) {
      this.ShiXi = data;
    },
    // 科研经历
    setKeYanHistory(data: any) {
      console.log('进来了，开始存储', data)
      this.keyan = data;
    },
    //个人荣誉
    setRongYu(data: any) {
      this.ry = data;
    },
    // 一句话打动hr
    setOneSpeak(data: any) {
      this.data = data;
    },
  },
});
